﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes {
    import flash.events.*;
    import flash.display.*;

    public class SlotLadder extends MovieClip {

        public const SLOT_LADDER_SPACING:Number = 51;

        public var m_itemsCount:Number;

        public function SlotLadder(_arg1:Number=1){
            this.m_itemsCount = _arg1;
            if (_arg1 > 0){
                this.update();
            };
            addEventListener(MouseEvent.MOUSE_DOWN, this.onMaskSlotLadder);
            addEventListener(MouseEvent.MOUSE_OVER, this.onMaskSlotLadder);
            addEventListener(MouseEvent.MOUSE_MOVE, this.onMaskSlotLadder);
            addEventListener(MouseEvent.MOUSE_OUT, this.onMaskSlotLadder);
            addEventListener(MouseEvent.MOUSE_UP, this.onMaskSlotLadder);
            addEventListener(MouseEvent.CLICK, this.onMaskSlotLadder);
        }
        public function onMaskSlotLadder(_arg1:MouseEvent):void{
            _arg1.stopImmediatePropagation();
            _arg1.stopPropagation();
        }
        public function update():void{
            var _local3:DisplayObject;
            var _local6:DisplayObject;
            var _local7:Sprite;
            var _local8:Bitmap;
            var _local1:Number = 0;
            var _local2:Sprite = new Sprite();
            _local2.addChild(_local3);
            _local2.y = _local1;
            addChild(_local2);
            _local1 = (_local1 + _local3.height);
            var _local4:Number = 1;
            while (_local4 < this.m_itemsCount) {
                _local7 = new Sprite();
                _local7.addChild(_local8);
                _local7.y = _local1;
                _local1 = (_local1 + this.SLOT_LADDER_SPACING);
                addChild(_local7);
                _local4++;
            };
            var _local5:Sprite = new Sprite();
            _local5.addChild(_local6);
            _local5.y = _local1;
            addChild(_local5);
        }

    }
}//package Classes 
